package com.dabao.dao;

import com.dabao.bean.Menu;
import com.dabao.bean.Role;
import com.dabao.query.RoleQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by kakalee on 16/4/24.
 */
public interface RoleDao extends BaseDao<Role, RoleQuery>{

    List<Menu> selectMenus(Integer id);

    int deleteRoleMenu(@Param("roleId") Integer roleId);

    int insertRoleMenu(@Param("roleId") Integer roleId, @Param("menuId")Integer menuId);
}
